﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
   public class Book
    {
        private int id;
        private string title;
        private int price;
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        public string Title
        {
            get
            {
                return title;
            }
            set
            {
                title = value;
            }
        }

        public int Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        }

       public void  PrintBookInfo()
        {
            Console.WriteLine("书的Id:{0}\n书的名称:{1}\n书的价格:{2}",this.Id ,this.Title,this.Price);
        }
    }
}
